Skip to content

Update supported Python versions to 3.10–3.13, set 3.12 as primary#922

Merged
tomwillis608 merged 8 commits into
mainfrom
copilot/update-python-versions
May 27, 2026
Merged

Update supported Python versions to 3.10–3.13, set 3.12 as primary#922
tomwillis608 merged 8 commits into
mainfrom
copilot/update-python-versions

Conversation

Copilot AI commented Mar 9, 2026

Copy link
Copy Markdown
Contributor
  • Update pyproject.toml: requires-python>=3.10, ruff target-versionpy312, added Python version classifiers
  • Update noxfile.py: python_versions["3.12", "3.10", "3.11", "3.13"] (3.12 as main/first)
  • Update .github/workflows/tests.yml: CI matrix (removed 3.9, added 3.13, 3.12 as main), coverage job Python 3.14 → 3.12
  • Update .github/workflows/release.yml: Python version 3.14 → 3.12
  • Update .github/workflows/benchmark.yaml: Python version 3.14 → 3.12
  • Update .pre-commit-config.yaml: --py37-plus--py310-plus
  • Update .readthedocs.yml: Python 3.10 → 3.12
  • Update README.md: Python requirement text updated
  • Update CONTRIBUTING.md: Python requirement text updated
  • Update ADR doc: Python version references updated
  • Fix pre-commit issues: ruff import ordering and pyupgrade Python 3.10+ syntax in config.py and metrics.py
Original prompt

This section details on the original issue you should resolve

<issue_title>update python versions</issue_title>
<issue_description>Support only Python 3.10, 3.11, 3.12, 3.13. make 3.12 the "main" version

change all configuration files, all github workflows, all pre-commit, pyproject.toml and other places where python version may exist in the project</issue_description>

Comments on the Issue (you are @copilot in this section)


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Co-authored-by: tomwillis608 <15950648+tomwillis608@users.noreply.github.com>
Copilot AI changed the title [WIP] Update Python versions to support 3.10, 3.11, 3.12, and 3.13 Update supported Python versions to 3.10–3.13, set 3.12 as primary Mar 9, 2026
@tomwillis608

Copy link
Copy Markdown
Collaborator

@copilot please resolve build issues:

pre-commit run --all-files
git add .
git commit -m "Fix pre-commit issues"

Copilot AI commented Mar 9, 2026

Copy link
Copy Markdown
Contributor Author

@tomwillis608 The model claude-sonnet-4.6 is not available for your account. This can happen if the model was disabled by your organization's policy or if your Copilot plan doesn't include access to it.

You can try again without specifying a model (just @copilot) to use the default, or choose a different model from the model picker.

If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: 77eded7c-4b9e-422b-8b29-4ceb609549f1

@tomwillis608

Copy link
Copy Markdown
Collaborator

@copilot
https://gh.io/copilot-coding-agent-docs please resolve build issues:

pre-commit run --all-files
git add .
git commit -m "Fix pre-commit issues"

Copilot AI and others added 2 commits March 9, 2026 03:30
Co-authored-by: tomwillis608 <15950648+tomwillis608@users.noreply.github.com>
Co-authored-by: tomwillis608 <15950648+tomwillis608@users.noreply.github.com>

Copilot AI commented Mar 9, 2026

Copy link
Copy Markdown
Contributor Author

@copilot
https://gh.io/copilot-coding-agent-docs please resolve build issues:

...

Fixed in commits 2bf02f5 and 98e80cd. Running pre-commit run --all-files revealed two auto-fixable issues triggered by the --py310-plus pyupgrade upgrade:

  • config.py: ruff fixed stdlib import ordering (zoneinfo moved before third-party toml)
  • metrics.py: pyupgrade upgraded Optional[datetime]datetime | None and moved Iterable from typing to collections.abc; ruff then corrected the resulting import ordering

All pre-commit hooks now pass cleanly.

@tomwillis608 tomwillis608 marked this pull request as ready for review March 9, 2026 04:06
@tomwillis608 tomwillis608 requested a review from halprin April 8, 2026 05:47
@tomwillis608 tomwillis608 merged commit 56da686 into main May 27, 2026
14 checks passed
@tomwillis608 tomwillis608 deleted the copilot/update-python-versions branch May 27, 2026 03:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

update python versions

2 participants